package com.shiver.base.service.impl;

import com.shiver.base.dao.UserDAO;
import com.shiver.base.entity.User;
import com.shiver.base.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chao on 2018-2-1.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    @Override
    public User login(User user) {
        return userDAO.login(user);
    }

    @Override
    public User getUserById(Integer id) {
        return userDAO.getUserById(id);
    }
}
